Fluent Assertions Documentation
FluentAssertions Namespace / EventRaisingExtensions Class / WithArgs Method / WithArgs<T>(IEventRecording,Expression<Func<T,Boolean>>[]) Method
In This Topic
    WithArgs<T>(IEventRecording,Expression<Func<T,Boolean>>[]) Method
    In This Topic
    Asserts that at least one occurrence of the events has arguments of the expected type T that pairwise match all the given predicates.
    Syntax

    Parameters

    eventRecording
    predicates

    Type Parameters

    T

    Return Value

    Returns only the events having arguments matching both type and all predicates.
    Remarks
    If a a null reference (Nothing in Visual Basic) is provided as predicate argument, the corresponding event parameter value is ignored.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also